
import 'package:json_annotation/json_annotation.dart';
part 'NewsTypeModel.g.dart';

/*资讯类别模型*/
@JsonSerializable()
class NewsTypeModel extends Object {

  //栏目编号
  final int id;
  final int pid;
  final String name;
  //栏目H5列表地址
  final String webUrl;
  //栏目图片
  final String imgUrl;
  final int type;
  final int ascriptionId;
  final String showLocation;
  final int deleted;
  final String? ascriptionName;

  /* 构造函数 */
  NewsTypeModel(
      this.id,
      this.pid,
      this.name,
      this.webUrl,
      this.imgUrl,
      this.type,
      this.ascriptionId,
      this.showLocation,
      this.deleted,
      this.ascriptionName);

  factory NewsTypeModel.fromJson(Map<String, dynamic> json) => _$NewsTypeModelFromJson(json);

  Map<String,dynamic> toJson() => _$NewsTypeModelToJson(this);

}